package com.wang.study.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 第三方用户表
 * </p>
 *
 * @author mark
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TbUserThirdparty对象", description = "第三方用户表")
public class TbUserThirdparty implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value = "user_thirdparty_id", type = IdType.AUTO)
    private Integer userThirdpartyId;

    @ApiModelProperty(value = "第三方Id")
    private String openId;

    @ApiModelProperty(value = "绑定用户的id")
    private String userNo;

    @ApiModelProperty(value = "第三方token")
    private String accessToken;

    @ApiModelProperty(value = "第三方类型 qq:QQ 微信:WX 微博:SINA")
    private String providerType;

    @ApiModelProperty(value = "状态值（1：启用，2：禁用，3：删除）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;


}
